package uk.ac.sanger.dasregistry.timer;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class AutoValidationWrapper  implements Job{

		public void execute(JobExecutionContext arg0) throws JobExecutionException {
			BeanFactory ctx=(new ClassPathXmlApplicationContext("SpringDAO.xml"));
			AutoValidation autoValidation=(AutoValidation)ctx.getBean("autoValidation");
			autoValidation.runAutoValidation(false);
		}
}

